package com.fnzn.entranceGuard.entity.community;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 小区基本信息表
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-11
 */
@TableName("community_info")
public class CommunityInfo extends Model<CommunityInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id",type = IdType.UUID)
    private Integer id;

    @TableField("code")
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
